<div class="personal">
    <div class="main">
        <div class="top">
            <div  class="blur_logo">
                <img src="{{loginer.info.header_url||'/images/default_head.jpg'}}?imageView/1/w/80">
            </div>
            <div class="logo">
            	{{#if loginer}}
                <a href="#personal/info?type=1">
                    <img src="{{loginer.info.header_url||'/images/default_head.jpg'}}?imageView/1/w/110/h/110" />
                </a>
                {{#else}}
                <a href="#default/sign_in">
					<img src="/images/default_head.jpg" />
                </a>
                {{/if}}
            </div>
        </div>

        <!-- menu -->
        {{#if loginer}}
        <div class="nav {{loginer&&'focus'}}">
            <a class="item border" href="#personal/order">
                <i class="icon-file"></i>
                我的订单
                <div class="symbol">&gt;</div>
            </a>
            <a class="item" href="#personal/info?type=3">
                <i class="icon-location"></i>
                我的收货地址
                <div class="symbol">&gt;</div>
            </a>
        </div>

        <div class="nav {{loginer&&'focus'}}">
            <a class="item border" href="#personal/info?type=1">
                <i class="icon-user2"></i>
                个人信息
                <div class="symbol">&gt;</div>
            </a>
            <a class="item" href="#personal/info?type=2">
                <i class="icon-key"></i>
                修改密码
                <div class="symbol">&gt;</div>
            </a>
            {{#if $Cache.WX.openid}}
            <a class="item" event-click="{{'$Event.personal.main.bind_weixin_by_openid'}}">
                <i class="icon-bubbles"></i>
                {{#if loginer.info.weixin_unionid}}
                微信已绑定<small>（点击重新绑定当前微信号）</small>
                {{#else}}
                微信未绑定<small>（点击绑定您的微信号）</small>
                {{/if}}
                <div class="symbol">&gt;</div>
            </a>
            {{/if}}
        </div>

        <div class="nav {{loginer&&'focus'}}">
            <a class="item border">
                <div event-click="{{'$Event.show_location_store_share'}}">
                    <i class="icon-rocket"></i>
                    本站推广
                    <div class="symbol">{{$Cache.show_location_store_share&&'&and;'||'&or;'}}</div>
                </div>
                <div class="shareinfo {{$Cache.show_location_store_share&&'focus'}}">
                    您的本站推广二维码
                    <div>
                        <img class="qrcode" src="{{$Cache.bus.qrcode_data}}" />
                        <jqrcode
                            text="{{bus_info.info.domain_url}}#default/main?rcid={{loginer._id}}"
                            ec-level="H"
                            size="200"
                            radius="20"
                            m-image="{{bus_info.info.logo_url}}?imageView/2/h/150/w/150"
                            m-size="30"
                            bind-input="{{'$Cache.bus.qrcode_data'}}"
                            style="display:none"
                        ></jqrcode>
                    </div>
                    您的本站推广链接
                    <div>
                        {{bus_info.info.domain_url}}#default/main?rcid={{loginer._id}}
                    </div>
                </div>
            </a>
            <a class="item border" href="#personal/point">
                <i class="icon-coin"></i>
                推荐返利
                <div class="symbol">&gt;</div>
            </a>
            <a class="item border" href="#personal/point?type=2">
                <i class="icon-attachment"></i>
                导购链接
                <div class="symbol">&gt;</div>
            </a>
            <a class="item" href="#personal/point?type=3">
                <i class="icon-users2"></i>
                分销管理
                <div class="symbol">&gt;</div>
            </a>
            <a class="item" href="#personal/invite">
                <i class="icon-users"></i>
                推荐注册
                <div class="symbol">&gt;</div>
            </a>
        </div>

        <div class="nav {{loginer&&'focus'}}">
            <a class="item border" href="#personal/collection">
                <i class="icon-office"></i>
                店铺收藏
                <div class="symbol">
                    <label>{{loginer.collectBus.length||'0'}}</label>
                    &gt;
                </div>
            </a>
            <a class="item border" href="#personal/collection?type=2">
                <i class="icon-folder-open"></i>
                商品收藏
                <div class="symbol">
                    <label>{{loginer.collect.length||'0'}}</label>
                    &gt;
                </div>
            </a>
            <a class="item" href="#personal/comment">
                <i class="icon-star2"></i>
                评价管理
                <div class="symbol">&gt;</div>
            </a>
        </div>

        <div class="nav {{loginer&&'focus'}}">
            <a class="item" event-click="{{'$Event.user_login_out'}}">
                <i class="icon-undo"></i>
                退出登陆
            </a>
        </div>

        {{#else}}
        <div class="nav">
            <a class="item border" event-click="{{'$Event.jumpToLogin'}}">
                <i class="icon-file"></i>
                我的订单
                <div class="symbol">&gt;</div>
            </a>
            <a class="item" event-click="{{'$Event.jumpToLogin'}}">
                <i class="icon-location"></i>
                我的收货地址
                <div class="symbol">&gt;</div>
            </a>
        </div>

        <div class="nav">
            <a class="item border" event-click="{{'$Event.jumpToLogin'}}">
                <i class="icon-user2"></i>
                个人信息
                <div class="symbol">&gt;</div>
            </a>
            <a class="item" event-click="{{'$Event.jumpToLogin'}}">
                <i class="icon-key"></i>
                修改密码
                <div class="symbol">&gt;</div>
            </a>
        </div>

        <div class="nav">
            <a class="item border" event-click="{{'$Event.jumpToLogin'}}">
                <i class="icon-coin"></i>
                推荐返利
                <div class="symbol">&gt;</div>
            </a>
            <a class="item border" event-click="{{'$Event.jumpToLogin'}}">
                <i class="icon-attachment"></i>
                导购链接
                <div class="symbol">&gt;</div>
            </a>
            <a class="item" event-click="{{'$Event.jumpToLogin'}}">
                <i class="icon-users2"></i>
                分销管理
                <div class="symbol">&gt;</div>
            </a>
            <a class="item" event-click="{{'$Event.jumpToLogin'}}">
                <i class="icon-users"></i>
                推荐注册
                <div class="symbol">&gt;</div>
            </a>
        </div>

        <div class="nav">
            <a class="item border" event-click="{{'$Event.jumpToLogin'}}">
                <i class="icon-office"></i>
                店铺收藏
                <div class="symbol">
                    <label>{{loginer.collectBus.length||'0'}}</label>
                    &gt;
                </div>
            </a>
            <a class="item border" event-click="{{'$Event.jumpToLogin'}}">
                <i class="icon-folder-open"></i>
                商品收藏
                <div class="symbol">
                    <label>{{loginer.collect.length||'0'}}</label>
                    &gt;
                </div>
            </a>
            <a class="item" event-click="{{'$Event.jumpToLogin'}}">
                <i class="icon-star2"></i>
                评价管理
                <div class="symbol">&gt;</div>
            </a>
        </div>
        {{/if}}
    </div>
</div>
